package com.basic.hellorabbit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Description:    队列配置
* @Author:         Joe
* @CreateDate:     2020/3/11 23:49
*/

@Configuration
public class RabbitConfiguration {

    //队列名称:TestRabbitMQ
    @Bean
    public Queue queue(){
        return new Queue("TestRabbitMQ");
    }
}
